using UnityEngine;
using System.Collections;
using LogicalComponent.util;

public class UiUtil : MonoBehaviour {

    public interface ClickHandler
    {
        void HandleClick(RaycastHit hit);
    }

    public static Tile GetTile(Coordinate c)
    {
        return GetGameManager().grid.GetTile(c);
    }

    public static GameManager GetGameManager()
    {
        return GameObject.FindWithTag("game_manager").GetComponent<GameManager>();
    }
}
